# Usually the language you are using
FROM python:3.9

# Add the main file / script
ADD app.py /

# Install dependencies in the requirements.txt file
COPY requirements.txt /opt/app/requirements.txt
WORKDIR /opt/app
RUN pip install -r requirements.txt
COPY . /opt/app

# Command that the console will execute
WORKDIR ./
CMD [ "python", "app.py", "runserver" ]